﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Models;

namespace JXT.PrimaryKey.Batman.Domain.Specifications
{
    /// <summary>
    /// 包含非分页条件的查询条件
    /// </summary>
    /// <typeparam name="TEntity">模型类型</typeparam>
    public interface IPagedSpecification<TEntity> : IOrderedSpecification<TEntity> where TEntity : IEntity
    {
        /// <summary>
        /// 是否启用分页
        /// </summary>
        bool IsEnablePaged { get; set; }

        //int RecordCount { get; set; }

        /// <summary>
        /// 分页大小
        /// </summary>
        int PageSize { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        int PageIndex { get; set; }

        //int PageCount { get; }
    }
}
